package cn.finedo.common;

public class ResultDomain extends BaseDomain {
    private static final long serialVersionUID = 1L;
    private String resultcode = "SUCCESS";
    private String resultdesc;

    public String getResultcode() {
        return this.resultcode;
    }

    public void setResultcode(String resultcode) {
        this.resultcode = resultcode;
    }

    public String getResultdesc() {
        return this.resultdesc;
    }

    public void setResultdesc(String resultdesc) {
        this.resultdesc = resultdesc;
    }

    public ResultDomain setFail(String resultdesc) {
        this.resultcode = "FAIL";
        this.resultdesc = resultdesc;
        return this;
    }

    public ResultDomain setSuccess(String resultdesc) {
        this.resultcode = "SUCCESS";
        this.resultdesc = resultdesc;
        return this;
    }
}
